Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ClientConnector abstraction for cross-platform clients #90

Merged
merged 4 commits into from
Oct 7, 2023

Conversation

UkoeHB
Copy link
Collaborator

@UkoeHB UkoeHB commented Oct 6, 2023

Problem

Clients are currently locked-in to tokio-tungstenite, which is not available on browser.

Solution

  • Use tokio-tungstenite-wasm errors internally to better support cross-platform clients.
  • Use enfync runtime handles internally to better support cross-platform clients. Default clients continue to use tokio.
  • Add ClientConnector abstraction for connecting clients and add ezsockets::client::connect_with.

Blocked by

Future work

  • Add default WASM ClientConnector.

@UkoeHB UkoeHB force-pushed the client_connector branch 5 times, most recently from d35ee27 to ba0cc31 Compare October 6, 2023 19:06
@UkoeHB UkoeHB requested a review from gbaranski October 6, 2023 19:55
@UkoeHB UkoeHB merged commit 7c142e0 into gbaranski:master Oct 7, 2023
3 checks passed
@UkoeHB UkoeHB deleted the client_connector branch October 7, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant